package Properties_test;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;

public class test02 {
    public static void main(String[] args) throws IOException {
        Properties pro=new Properties();
        pro.load(new FileReader("D:\\javaeework\\javaday11_work\\src\\iphone.properties"));
        Set<String> keys = pro.stringPropertyNames();
        for (String key : keys) {
            String value = pro.getProperty(key);
            System.out.println(key+"=====>"+value);
        }



    }
}
